<app-content-header
></app-content-header>

<app-detail-header
  *ngIf="!loading"
  title="规则详情"
  (edit)="triggerBaseEdit()"
  (cancel)="cancelBase()"
  (save)="saveBase()"
></app-detail-header>

<nz-spin [nzSpinning]="loading"></nz-spin>

<app-base-info
  *ngIf="!loading"
  [(firstColumns)]="firstColumns"
  [(secondColumns)]="secondColumns"
></app-base-info>

<ng-template #tpLevel>
  <nz-select
    [ngStyle]="{width: '100%'}"
    [nzAllowClear]="false"
    [(ngModel)]="detailData.level"
  >
    <nz-option *ngFor="let item of levelOptions" [nzLabel]="item.label" [nzValue]="item.value"></nz-option>
  </nz-select>
</ng-template>

<ng-template #tpCurrency>
  <app-currency-select
    required
    [type]="'string'"
    [allowClear]="false"
    [(ngModel)]="detailData.currency"
  >
  </app-currency-select>
</ng-template>
